<?php
/**
* Mailman subscription administration
* @Copyright (C) 2007 Curtis Preston
* @ All rights reserved
* @ Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @ http://www.backupcentral.org
* @version 1.01
**/

defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');

class HTML_mailman2 {

function editSettings ($option, $rows)
{
	$database = & JFactory::getDBO();;
	$row = $rows[0];

?>
	<form action="index2.php" method="post" name="adminForm">
	<table cellpadding="2" cellspacing="4" border="0" width="100%">
	<tr>
		<th align="left">
			<img src="components/com_mailman2/images/asterisk.png" style="margin-right:10px; vertical-align:middle;" alt="asterisk.png" />
			<font style="color: #FF9E31;font-size : 18px;font-weight: bold;text-align: left;"><?php echo _MM_TITLE; ?></font>
		</th>
		</tr>
		</table>
	<table border="0" cellspacing="0" cellpadding="0" class="adminlist">
	<tr>
		<td>
			<b><?php echo _MM_SETTINGS_PARAM; ?></b>
		</td>
		<td>
			<b><?php echo _MM_SETTINGS_VALUE; ?></b>
		</td>
		<td>
			<b><?php echo _MM_SETTINGS_DESCRIPTION; ?></b>
		</td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_MAILDOMAIN; ?></td>
		<td><input type="text" name="mm_maildomain" value="<?php echo $row->maildomain; ?>" /></td>
		<td><?php echo _MM_SETTINGS_MAILDOMAIN_DESC; ?></td>
	</tr>
	<tr>
	
	<!--	<Select name="webmaster%40agescirimini.it_language">
 			<option value="en"> Inglese (USA) </option>
 			<option value="it" Selected> Italiano </option> -->
	
	
		<td><?php echo _MM_SETTINGS_PROTOCOL; ?></td>
		<td>
		<select name="mm_protocol">
		<?
		$protocol = null;
		$protocols = array("http://", "https://");
		foreach($protocols as $protocol) {
			if($row->protocol == $protocol) $selected = " Selected";
			else $selected = "";
			print '<option value="' . $protocol . '"' .$selected . '>' . $protocol . '</option>';
		}
		?>
		</td>
		<td><?php echo _MM_SETTINGS_PROTOCOL_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_DOMAIN; ?></td>
		<td><input type="text" name="mm_domainname" value="<?php echo $row->domainname; ?>" /></td>
		<td><?php echo _MM_SETTINGS_DOMAIN_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_ADMINDIR; ?></td>
		<td><input type="text" name="mm_admindir" value="<?php echo $row->admindir; ?>" /></td>
		<td><?php echo _MM_SETTINGS_ADMINDIR_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_APPDOM; ?></td>
		<td><input type="text" name="mm_appdomain" value="<?php echo $row->appdomain; ?>" /></td>
		<td><?php echo _MM_SETTINGS_APPDOM_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_SITENAME; ?></td>
		<td><input type="text" name="mm_sitename" value="<?php echo $row->sitename; ?>" /></td>
		<td><?php echo _MM_SETTINGS_SITENAME_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_ADMINPW; ?></td>
		<td><input type="text" name="mm_adminpw" value="<?php echo $row->adminpw; ?>" /></td>
		<td><?php echo _MM_SETTINGS_ADMINPW_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_SENDER; ?></td>
		<td><input type="text" name="mm_sender" value="<?php echo $row->sender; ?>" /></td>
		<td><?php echo _MM_SETTINGS_SENDER_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_EXTLIST; ?></td>
		<td>
			<?php echo mosHTML::yesnoSelectList("mm_extlist", "", $row->extlist); ?>
		</td>
		<td><?php echo _MM_SETTINGS_EXTLIST_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_DEBUG; ?></td>
		<td>
			<?php echo mosHTML::yesnoSelectList("mm_debug", "", $row->debug); ?>
		</td>
		<td><?php echo _MM_SETTINGS_DEBUG_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_COMMUNITYBUILDER; ?></td>
		<td>
			<?php echo mosHTML::yesnoSelectList("mm_communitybuilder", "", $row->communitybuilder); ?>
		</td>
		<td><?php echo _MM_SETTINGS_COMMUNITYBUILDER_DESC; ?></td>
	</tr>
	<tr>
		<td><?php echo _MM_SETTINGS_COMMUNITYBUILDERSTRING; ?></td>
		<td><input type="text" name="mm_communitybuilderstring" value="<?php echo $row->communitybuilderstring; ?>" /></td>
		<td><?php echo _MM_SETTINGS_COMMUNITYBUILDERSTRING_DESC; ?></td>
	</tr>
	</table>
	<input type="hidden" name="error_invalid_values" value="<?php echo _MM_SETTINGS_INVALID_VALUES; ?>" />
	<input type="hidden" name="option" value="<?php echo $option; ?>" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="act" value="config" />
	<input type="hidden" name="id" value=<?php echo $row->id ?> />
	</form>

<?php
	}
}
?>


